const Webpack = require("webpack");
const { merge } = require("webpack-merge");
const webpackBaseConfig = require("./webpack.base");


module.exports = merge(webpackBaseConfig, {
    mode: "development",
    devServer: {
        hot: true,
        port: 3005,
        open: true,
        compress: true,
        progress: true,
        contentBase: "./dist",
    },
    plugins: [
        new Webpack.DefinePlugin({
            ENV: JSON.stringify('DEV'),
        }),
        // new Webpack.NamedModulesPlugin(),
        // new Webpack.HotModuleReplacementPlugin(),
    ],
});